package com.jimikongjian.service.base;

import com.jimikongjian.models.Photo;
import com.jimikongjian.models.ResponseMessage;

import java.util.List;

/**
 * Created by fuxiuyang on 17/3/13.
 */
public interface IPhotoService {


    /**
     * 上传照片
     * @param photoList
     * @return
     */
    public ResponseMessage uploadPhotoList(List<Photo> photoList);


    /**
     * 上传照片
     * @param photo
     * @return
     */
    public ResponseMessage uploadPhoto(Photo photo);


    /**
     * 通过相片的id号，查找该照片
     * @param id
     * @return
     */
    public ResponseMessage selectPhotoById(int id);


    /**
     * 通过相册的id号查找该相册下的从第start个开始到第start+length个照片
     * @param albumId
     * @return
     */
    public ResponseMessage selectPhotoByAlbumId(int albumId, int start, int length);
}
